package com.flatsmap.dao;

import java.util.List;

import org.hibernate.Hibernate;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class StreetDao extends HibernateDaoSupport {

	public List<String> getStreetNames(){
		return getSession().createSQLQuery(
				"select street_name from streets")
				.addScalar("street_name", Hibernate.STRING)
				.list();
	}
	
}
